package com.bank.service;

import com.bank.dto.AccountDTO;
import com.bank.dto.LoanDTO;
import com.bank.dto.RepayDTO;
import com.bank.entity.Loan;
import com.bank.vo.LoanTransactionVO;

import java.util.List;

public interface LoanService {
    Loan getLoanByAccountId(Long accountId);

    void addLoanByAccountId(Long accountId);

    void getLoan(LoanDTO loanDTO);

    List<LoanTransactionVO> getAllLoanTransaction(Long accountId);

    void repayLoan(RepayDTO repayDTO);
}
